package com.lzq.train.generator.gen;

import com.lzq.train.generator.util.FreemarkerUtil;
import freemarker.template.TemplateException;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

public class TestFreemaker {
    static String toPath = "generator//src/main//java//com/lzq//train//generator//test//";

    public static void main(String[] args) throws IOException, TemplateException {
        FreemarkerUtil.initConfig("test.ftl");
        Map<String, Object> map = new HashMap<>();
        map.put("domain", "Test");
        FreemarkerUtil.generator(toPath + "Test.java", map);
    }
}
